﻿using OA.Models.Root;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OA.Models
{
    /// <summary>
    /// 员工
    /// </summary>
    public class SysPerson : EntityBase
    {
        [Required]
        [StringLength(20)]
        public string Name { get; set; }

        [Required]
        [StringLength(2)]
        public string Gender { get; set; }

        [Required]
        [StringLength(20)]
        public string Phone { get; set; }

        public int OrgId { get; set; }

        [ForeignKey(nameof(OrgId))]
        public virtual SysOrg Org { get; set; }


    }
}
